package com.school.excption;

/**
 * @ ClassName:MallException
 * @ Package:com.school.exception
 * @ Tool：IntelliJ IDEA
 * @ Author：不想翻身的咸鱼的🐟丈夫
 * @ Date：2025-04-15-11:33
 * @ Version：5.2.0
 */
public class MallException extends RuntimeException{
    public MallException() {
    }

    public MallException(String message) {
        super(message);
    }
    //丢出异常方法
    public static String fail(String message) {
        throw new MallException(message);
    }
}
